From: Brion Vibber Date: Sat, 24 Apr 2004 07:02:27 +0000 (+0000) Subject: Allow forgotten Special:Emailuser/Username link style to work (handy for inline linki... X-Git-Tag: 1.3.0beta1~295 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=f6f15889bf0deb73eb6dc93d2018fa5b7a7f1230;p=lhc%2Fweb%2Fwiklou.git Allow forgotten Special:Emailuser/Username link style to work (handy for inline linking from wiki pages). Fixes bug #939512 --- diff --git a/includes/SpecialEmailuser.php b/includes/SpecialEmailuser.php index 2d9645dec0..11e6a63284 100644 --- a/includes/SpecialEmailuser.php +++ b/includes/SpecialEmailuser.php @@ -2,8 +2,7 @@ require_once('UserMailer.php'); -function wfSpecialEmailuser() -{ +function wfSpecialEmailuser( $par ) { global $wgUser, $wgOut, $wgRequest; if ( 0 == $wgUser->getID() || @@ -11,8 +10,13 @@ function wfSpecialEmailuser() $wgOut->errorpage( "mailnologin", "mailnologintext" ); return; } + $action = $wgRequest->getVal( 'action' ); - $target = $wgRequest->getVal( 'target' ); + if( empty( $par ) ) { + $target = $wgRequest->getVal( 'target' ); + } else { + $target = $par; + } if ( "" == $target ) { $wgOut->errorpage( "notargettitle", "notargettext" ); return;